/** @format */

import axios from '@/utils/request'

// 盒字段定义-列表查询
export function busFieldDefineListBox(selectType) {
  return axios.get('/busFieldDefine/listBox', {
    params: { selectType: selectType },
  })
}
// 档案字段定义-列表查询
export function busFieldDefineListLabel(selectType) {
  return axios.get('/busFieldDefine/listLabel', {
    params: { selectType: selectType },
  })
}
// 档案字段定义-列表查询
export function busMetadataList(params) {
  return axios.get('/busMetadata/list', { params: params })
}

// 重置档案字段定义
export function resetArchiveFields(params) {
  return axios.post('/busFieldDefine/resetArchiveFields', params)
}
// 重置盒字段定义
export function resetBoxFields(params) {
  return axios.post('/busFieldDefine/resetBoxFields', params, {
    headers: {
      'Content-Type': 'application/json',
    },
  })
}
// 盒列表字段顺序
export function rfidAccountFieldDefinelistBox(params) {
  return axios.get('/rfidAccountFieldDefine/listBox', { params: params })
}
// 件列表字段顺序
export function rfidAccountFieldDefinelistArchive(params) {
  return axios.get('/rfidAccountFieldDefine/listArchive', { params: params })
}
// 设置默认盒字段顺序
export function resetDefaultBoxFieldSort(params) {
  return axios.post('/rfidAccountFieldDefine/resetDefaultBoxFieldSort', params)
}
// 设置默认档案字段顺序
export function resetDefaultArchiveFieldSort(params) {
  return axios.post('/rfidAccountFieldDefine/resetDefaultArchiveFieldSort', params)
}

// 档案可导入字段集合
export function queryImpFieldArchive(params) {
  return axios.get('/busFieldDefine/common/queryImpFieldArchive', { params: params })
}

// 盒可导入字段
export function queryImpFieldBox(params) {
  return axios.get('/busFieldDefine/common/queryImpFieldBox', { params: params })
}

// 档案可导出字段集合
export function queryExpFieldArchive(params) {
  return axios.get('/busFieldDefine/common/queryExpFieldArchive', { params: params })
}

// 盒可导出字段
export function queryExpFieldBox(params) {
  return axios.get('/busFieldDefine/common/queryExpFieldBox', { params: params })
}

// 档案自定义查询下拉
export function archiveDrownDown() {
  return axios.get('/busFieldDefine/archiveDrownDown')
}

// 盒自定义查询下拉
export function boxDrownDown() {
  return axios.get('/busFieldDefine/boxDrownDown')
}
